-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate run-make/doctests-keep-binaries
to new rmake.rs format
#124658
Conversation
@@ -62,6 +62,12 @@ impl Rustdoc { | |||
self | |||
} | |||
|
|||
/// Set the path where the command will be run. | |||
pub fn current_dir<P: AsRef<Path>>(&mut self, path: P) -> &mut Self { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I add this method in Rustc
too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense, or even in the impl_helper_methods
macro to generate that for all command wrappers.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just some nitpicks.
@@ -62,6 +62,12 @@ impl Rustdoc { | |||
self | |||
} | |||
|
|||
/// Set the path where the command will be run. | |||
pub fn current_dir<P: AsRef<Path>>(&mut self, path: P) -> &mut Self { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense, or even in the impl_helper_methods
macro to generate that for all command wrappers.
7a627a1
to
34df542
Compare
Moved the implementation of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I like the setup_test_env
helper :3
Feel free to r=me after CI is green.
This comment has been minimized.
This comment has been minimized.
34df542
to
07fe4e6
Compare
@bors r=jieyouxu |
…, r=jieyouxu Migrate `run-make/doctests-keep-binaries` to new rmake.rs format r? `@jieyouxu`
@bors r- |
07fe4e6
to
5ea65c8
Compare
Now we can put it into the rollup: @bors r=jieyouxu rollup |
…, r=jieyouxu Migrate `run-make/doctests-keep-binaries` to new rmake.rs format r? `@jieyouxu`
…mpiler-errors Rollup of 8 pull requests Successful merges: - rust-lang#124293 (Let miri and const eval execute intrinsics' fallback bodies) - rust-lang#124418 (Use a proof tree visitor to refine the `Obligation` for error reporting in new solver) - rust-lang#124480 (Change `SIGPIPE` ui from `#[unix_sigpipe = "..."]` to `-Zon-broken-pipe=...`) - rust-lang#124648 (Trim crate graph) - rust-lang#124656 (release notes 1.78: add link to interior-mut breaking change) - rust-lang#124658 (Migrate `run-make/doctests-keep-binaries` to new rmake.rs format) - rust-lang#124681 (zkvm: fix run_tests) - rust-lang#124687 (Make `Bounds.clauses` private) r? `@ghost` `@rustbot` modify labels: rollup
…, r=jieyouxu Migrate `run-make/doctests-keep-binaries` to new rmake.rs format r? ``@jieyouxu``
…mpiler-errors Rollup of 8 pull requests Successful merges: - rust-lang#124418 (Use a proof tree visitor to refine the `Obligation` for error reporting in new solver) - rust-lang#124480 (Change `SIGPIPE` ui from `#[unix_sigpipe = "..."]` to `-Zon-broken-pipe=...`) - rust-lang#124648 (Trim crate graph) - rust-lang#124656 (release notes 1.78: add link to interior-mut breaking change) - rust-lang#124658 (Migrate `run-make/doctests-keep-binaries` to new rmake.rs format) - rust-lang#124678 (Stabilize `split_at_checked`) - rust-lang#124681 (zkvm: fix run_tests) - rust-lang#124687 (Make `Bounds.clauses` private) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#124658 - GuillaumeGomez:migrate-to-run-make, r=jieyouxu Migrate `run-make/doctests-keep-binaries` to new rmake.rs format r? ```@jieyouxu```
Part of #121876.
r? @jieyouxu